package students.po;

import java.io.Serializable;
import java.util.Date;

public class Students implements Serializable{
	private static final long serialVersionUID = 1L;
	private String studentName;
	private String studentId;
	private String phoneNo;
	private String adress;
	private int classId;
	private String className;
	private String sex;
	private Date birthday;
	private String email;
	private Majorclass majorclass;
	
	public Students(String studentName, String studentId, String phoneNo, String adress,Majorclass majorclass,String sex,
			Date birthday, String email) {
		super();
		this.studentName = studentName;
		this.studentId = studentId;
		this.phoneNo = phoneNo;
		this.adress = adress;
		this.classId = classId;
		this.className = majorclass.getClassName();
		this.sex = sex;
		this.birthday = birthday;
		this.email = email;
		this.majorclass = majorclass;
	}
	public Students() {
		super();
	}
	
	public String getStudentName() {
		return studentName;
	}
	public void setStudentName(String studentName) {
		this.studentName = studentName;
	}
	public String getStudentId() {
		return studentId;
	}
	public void setStudentId(String studentId) {
		this.studentId = studentId;
	}
	public String getPhoneNo() {
		return phoneNo;
	}
	public void setPhoneNo(String phoneNo) {
		this.phoneNo = phoneNo;
	}
	public String getAdress() {
		return adress;
	}
	public void setAdress(String adress) {
		this.adress = adress;
	}
	public int getClassId() {
		return classId;
	}
	public void setClassName(String className) {
		this.className = className;
	}
	public String getClassName() {
		return className;
	}
	public void setClassId(int classId) {
		this.classId = classId;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public Majorclass getMajorclass() {
		return majorclass;
	}
	public void setMajorclass(Majorclass majorclass) {
		this.majorclass = majorclass;
	}
	@Override
	public String toString() {
		return "Students [studentName=" + studentName + ", stuentId=" + studentId + ", phoneNo=" + phoneNo + ", adress="
				+ adress + ", classid=" + classId + ", className=" + className +", sex=" + sex + ", birthday=" + birthday + ", email=" + email
				+ ", majorclass=" + majorclass + "]";
	}
	

}
